﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="shopping_order.aspx.cs" Inherits="shopping_order" %>

<%@ Register Src="_controls/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="_controls/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register Src="_controls/membership_left_nav.ascx" TagName="membership_left_nav"
    TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_Head1">
    <title>曼福旅游保险</title>
    <link rel="canonical" href="http://www.insureandgo.com" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="travel insurance, holiday insurance, annual travel insurance, ski insurance, backpackers insurance, annual, cheap, uk, insurance, insureandgo, InsureandGo," />
    <meta name="description" content="Buy cheap travel insurance from InsureandGo, the UK's largest direct travel insurer. Wide range of policies available. Prices from under &pound;6. Kids go free." />
    <meta name="robots" content="noodp" />
    <meta name="google-site-verification" content="_p3NAz7IjML6o1UMAukUDLvJ-q3yRO-14nTqkjd0dDI" />
    <meta name="WT.pi" content="index.html" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link href="_common/styles/layout.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 7]>
        <link rel="stylesheet" type="text/css" href="_common/styles/lteie7.css" />
    <![endif]-->
    <!-- jquery style sheets -->
    <!-- jquery libraries -->
    <script src="_common/scripts/jquery/jquery-1.6.2.js" type="text/javascript"></script>
    <script src="_common/scripts/jquery/UI/jquery.ui.core.js" type="text/javascript"></script>
    <script src="_common/scripts/jquery/UI/jquery.ui.widget.js" type="text/javascript"></script>
    <script type="text/javascript" src="_common/scripts/utility.js"></script>
    <script src="_common/scripts/ifeng_marquee.js" type="text/javascript"></script>
    <link rel="stylesheet" href="_common/styles/styles.css" type="text/css" />
    <link href="_common/styles/style-compressed.css" rel="stylesheet" type="text/css" />
    <link href="_common/styles/product_items.css" rel="stylesheet" type="text/css" />
    <link href="_common/styles/shopping_order_layout.css" rel="stylesheet" type="text/css" />
    <link href="_common/styles/form_layout.css" rel="stylesheet" type="text/css" />
    <!-- ANALYTICS END -->
    <script type="text/javascript" src="_common/scripts/jquery_regform_validator.js"></script> 
    <script language="javascript" src="_common/scripts/jquery_json.js" type="text/javascript"></script>

    <script language="javascript" src="_common/scripts/jquery_stringutil.js" type="text/javascript"></script>

    <script language="javascript" src="_common/scripts/interface.js" type="text/javascript"></script>

    <script type="text/javascript" src="../_common/scripts/jquery_regform_validator.js"></script>
    <script src="_common/scripts/Util.js" type="text/javascript"></script>
    <script src="_common/scripts/jq_shopping_utility.js" type="text/javascript"></script>
    <script src="_common/scripts/jq_order_utility.js" type="text/javascript"></script>
     
    <script type="text/javascript">
        $(document).ready(function () {
            validator.setup("#form1");
            LoadingCartItemsView("tbdCardItems");
            /// 加载地址簿列表
            LoadAddressNameList();
            if ($("#selShippingAddressList").val() != "") {
                $("#txtShippingAddressId").val($("#selShippingAddressList").val());
            }
            /// 获取当前送货地址信息
            GetAddressContentInfo();
        })
        function ValidatorSumbit() {
            var bl = false;
            var alertMsg = "";
            if (Trim($("#txtShippingAddressId").val()) == "") {
                alertMsg = "请填写送货地址！\r\n";
                AddShippingAddress();
                bl = false;
            }  

            if (alertMsg != "") {
                alert(alertMsg);
                return false;
            }
            else
                return true;
        }
    </script>
</head>
<body>
    <script type="text/javascript">
    <!--
        function ___doPostBack(eventTarget) {
            var theForm = document.forms["form1"];
            if (!theForm) {
                theForm = document.form1;
            }
            if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
                theForm.___EVENTTARGET.value = eventTarget;
                theForm.submit();
            }
        }
    // -->
    </script>

    <div id="success" style="position: absolute; z-index: 300; height: 93px; width: 273px;
        left: 54%; top: 87%; margin-left: -150px; margin-top: -80px; background: #F8F8F8;">
        <div style="position: absolute; z-index: 300; width: 270px; height: 90px; background-color: #FFF7D3;
            border: solid #E60113 1px; font-size: 14px;">
            <div style="height: 64px; line-height: 150%; padding: 0px 3px 0px 3px;" align="center">
                <br />
                <table>
                    <tr>
                        <td valign="top">
                            <img border="0" src="_imgs/progress.gif" />
                        </td>
                        <td valign="middle" style="font-size: 14px; width: 150px;">
                            操作执行中 ...<br />
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </div>
        <div style="position: absolute; width: 270px; height: 108px; z-index: 299; left: 4px;
            top: 5px; background-color: #E8E8E8; border: #E8E8E8 1px solid; display: none;">
        </div>
    </div>

    <script type="text/javascript">
        document.getElementById("success").style.display = "none"; 
    </script>

    <script src="_common/scripts/divcover.js" type="text/javascript"></script>

    <form id="form1" runat="server">
    <input type="hidden" name="___EVENTTARGET" id="___EVENTTARGET" value="" />
    <input id="txtProvinceId" type="hidden" name="txtProvinceId" />
    <input id="txtCityId" type="hidden" name="txtCityId" />
    <input id="txtCountieId" type="hidden" name="txtCountieId" />
    <input id="txtShippingAddressId" type="hidden" name="txtShippingAddressId" />
    <div class="cc-cookies">
    </div>
    <uc1:header ID="header1" runat="server" />
    <div class="clear">
    </div>
    <div id="main">
        <div id="secondary" class="widget-area">
            <uc3:membership_left_nav ID="membership_left_nav1" runat="server" />
        </div>
        <div class="rightContent">
            <div class="statusbar">
                <div id="showHideAll" style="display: block; ">
    	            <ul id="statusbarstep1" class="">
        	            <li class="number">1</li>
                        <li class="text">选择商品</li>        
                    </ul>
                    <ul id="statusbarstep2" class="">
        	            <li class="number">2</li>
                        <li class="text">购物车</li>        
                    </ul>
                    <ul id="statusbarstep3" class="active">
        	            <li class="number">3</li>
                        <li class="text">填写信息</li>        
                    </ul> 
                    <ul id="statusbarstep4" class="">
        	            <li class="number">4</li>
                        <li class="text">核对信息</li>        
                    </ul> 
                    <ul id="statusbarstep5" class="">
        	            <li class="number">5</li>
                        <li class="text">成功兑换</li>        
                    </ul> 
                </div>
            </div> 
            <div class="clear">
            </div>
            <div class="innercontent" id="mainOrderContent">
                <div class="shoppingcart_box">
                    <div class="checkoutBox" id="shippingAddressContentEditPanel" style="display: none;">
                        <div id="loading1" style="display: none; position: absolute; z-index: 300; width: 200px;
                            height: auto; background-color: #FFF7D3; border: solid #E60113 1px; font-size: 12px;
                            margin-left: 140px; margin-top: 50px;">
                            <table style="line-height: 45px; padding: 5px 3px 5px 3px;" align="center">
                                <tr>
                                    <td valign="top">
                                        <img border="0" src="_imgs/progress.gif" />
                                    </td>
                                    <td valign="middle">
                                        &nbsp;操作执行中 ...<br />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <h4 class="title1">
                            我的收货地址
                            <span id="addressEdit" class="edit">
                            <a title="取消修改" name="ShippingAddressTitle" href="javascript:void(0);" onclick="ShippingAddressCancel(this);">[取消修改]</a>
                            </span> 
                        </h4>
                        <ul class="infoList edit" id="shippingAddressEditContentInfo">
                            <li id="firstLine">
                                <label>
                                    收货人地址：</label>
                                <select id="selShippingAddressList" name="selShippingAddressList">
                                </select>
                                <a class="newAdd" title="新增收货人信息" href="javascript:AddShippingAddress()">新增收货人信息</a>
                            </li>
                            <li>
                                <label for="txtShipToName">
                                    地址类型：</label>
                                <input name="txtShipAddressName" type="text" id="txtShipAddressName" validatormsg="spanShipAddressName"
                                    value="我的地址1" required="required" controlname="地址类型" isvalidator />
                                <span class="alertPanel" id="spanShipAddressName"></span></li>
                            <li>
                                <label for="txtShipToName">
                                    收货联系人：</label>
                                <input name="txtShipToName" type="text" id="txtShipToName" validatormsg="spanShipToName"
                                    required="required" controlname="收货联系人" isvalidator />
                                <span class="alertPanel" id="spanShipToName"></span></li>
                            <li>
                                <label for="txtMobile">
                                    手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</label>
                                <input name="txtShipMobile" type="text" id="txtShipMobile" />
                                <em></em></li>
                            <li>
                                <label for="txtShipTel">
                                    联系电话：</label>
                                <input name="txtShipTel" type="text" id="txtShipTel" required="required" controlname="联系电话"
                                    isvalidator validatormsg="spanShipTel" />
                                <span class="alertPanel" id="spanShipTel"></span></li>
                            <li>
                                <label for="selProvinceList">
                                    地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：</label>
                                <select id="selProvinceList" name="selProvinceList" runat="server" />
                                </select>
                                <select id="selCityList" name="selCityList">
                                    <option value="">-- 选择城市 --</option>
                                </select>
                                <select id="selCountiesList" name="selCountiesList" required="required" controlname="地区"
                                    isvalidator validatormsg="spanCountiesList">
                                    <option value="">-- 选择区县 --</option>
                                </select>
                                <span class="alertPanel" id="spanCountiesList"></span></li>
                            <li>
                                <label for="txtShipAddress">
                                    联系地址：</label>
                                <input name="txtShipAddress" type="text" id="txtShipAddress" class="longInput" required="required"
                                    controlname="联系地址" isvalidator validatormsg="spanShipAddress" />
                                <span class="alertPanel" id="spanShipAddress"></span></li>
                            <li>
                                <label for="txtShipZip">
                                    邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编：</label>
                                <input name="txtShipZip" type="text" id="txtShipZip" />
                            </li>
                            <li>
                                <div id="btnAddShippingInfo" style="display: none;">
                                    <a class="button buttonA withMarginLeft" title="保存收货人信息" href="javascript:if(validator.validatorAll()){this.disabled=true;ShippingAddressSave('addshippingaddress');}">
                                        <span><span class="buttonOK">保存收货人信息</span></span></a></div>
                                <div id="btnEditShippingInfo">
                                    <a class="button buttonA withMarginLeft" title="保存收货人信息" href="javascript:if(validator.validatorAll()){this.disabled=true;ShippingAddressSave('modifyshippingaddress');}">
                                        <span><span class="buttonOK">保存收货人信息</span></span></a></div>
                            </li>
                        </ul>
                    </div>
                    <div id="shippingAddressContentInfo" class="checkoutBox">
                        <h4 class="title1">
                            我的收货地址：<span id="spanShipAddressName_Info" style="font-size: 12px; font-weight: normal;
                                color: #E55E02;"></span><span class="edit"><a title="修改收货人信息" name="ShippingAddressTitle"
                                    href="javascript:void(0)" onclick="ShippingAddressEdit(this);">[修改]</a></span></h4>
                        <div class="clear">
                            &nbsp;</div>
                        <ul class="infoList">
                            <li>
                                <label>
                                    收货联系人：</label>
                                <span id="spanShipToName_Info"></span>
                                <input name="hidShipToName" type="hidden" id="hidShipToName" /></li>
                            <li>
                                <label>
                                    手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</label>
                                <span id="spanShipMobile_Info"></span>
                                <input name="hidShipMobile" type="hidden" id="hidShipMobile" />
                            </li>
                            <li>
                                <label>
                                    联系电话：</label>
                                <span id="spanShipTel_Info"></span>
                                <input name="hidShipTel" type="hidden" id="hidShipTel" />
                            </li>
                            <li>
                                <label>
                                    地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：</label>
                                <span id="spanShipCounties_Info"></span>
                                <input name="hidShipCounties" type="hidden" id="hidShipCounties" /> 
                            </li>
                            <li>
                                <label>
                                    邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编：</label>
                                <span id="spanShipZip_Info"></span>
                                <input name="hidShipZip" type="hidden" id="hidShipZip" />
                            </li>
                            <li>
                                <label>
                                    联系地址：</label>
                                <span id="spanShipAddress_Info"></span>
                                <input name="hidShipAddress" type="hidden" id="hidShipAddress" />
                             </li>
                        </ul>
                    </div> 
                </div>
                <div class="checkoutBox checkoutAll">
                    <h4 class="title">
                        订单结算信息 <span class="edit"><a title="返回购物车修改" href="shopping_cart.aspx">[返回购物车修改]</a> </span><a name="warehouseOrder"></a>
                    </h4>
                    <table class="shopCart" id="shopCart">
                        <thead>
                            <tr>
                                <th scope="col">
                                    商品名称
                                </th> 
                                <th scope="col" style="width: 80px;">
                                    数量
                                </th>
                                <th scope="col" style="width: 80px;">
                                    积分
                                </th>
                                <th scope="col" style="width: 100px;">
                                    小计
                                </th>
                            </tr>
                        </thead>
                        <tbody id="tbdCardItems">
                        </tbody>
                    </table>
                    <div class="finalPrice" id="finalPrice">
                        <div class="finalPriceLeft">
                            <div class="clear">
                                &nbsp;</div>
                        </div>
                        <div class="priceAreaRight" style="display: none;">
                            <ul class="priceArea">
                                <li style="display: none;"><span>运费金额：</span><em>￥0.00</em></li><li style="display: none;"><span>合计积分：</span><em id="emTotalCost"
                                    runat="server"></em></li></ul>
                        </div>
                    </div>
                    <div class="payMoney payMoney2" id="payMoney"> 
                        <p style="margin-top: 5px;">
                            所需积分：<strong id="strong_PayTotalAmount" runat="server">0</strong></p>
                    </div>
                </div>
                <div class="checkoutBox noBorder">
                    <div class="clear"></div>
                    <div class="buttons" style="margin: 5px 5px 0px 0px;">
                        <span><a id="btn_login" href="javascript:void(0);" onclick="if(ValidatorSumbit()){this.disabled=true;success.style.display='block';HideOverSels('success');___doPostBack('submitorder');}">
                            提交订单</a></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
    <uc2:footer ID="footer1" runat="server" />
    </form>
</body>
</html>
